﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditUserProfile.ascx.cs"
    Inherits="UserControls_EditUserProfile" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<table style="width: 67%;">
    <thead>
        <tr>
            <th style="width:20%">
            </th>
            <th  style="width:40%" align="center">
                <asp:Label ID="lblOwnText" runat="server" Text="Te tulajdonságaid"></asp:Label>
            </th>
            <th  style="width:40%" align="center">
                <asp:Label ID="lblPartnerText" runat="server" Text="Partnered tuladjonságai"></asp:Label>
            </th>
        </tr>
    </thead>
    <tr>
        <td align="right">
            <asp:Label ID="lblSexText" runat="server" Text="Nem"></asp:Label>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlOwnSex" runat="server" DataSourceID="ProfileXmlDataSource_Sex"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
            <asp:CompareValidator ID="cmpvldtrOwnGender" ControlToValidate="ddlOwnSex" ValueToCompare="0" Display="Dynamic" Operator="NotEqual" runat="server" ErrorMessage="CompareValidator"></asp:CompareValidator>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlPartnerSex" runat="server" DataSourceID="ProfileXmlDataSource_Sex"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblAge" runat="server" Text="Életkor"></asp:Label>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlOwnBuild" runat="server" DataSourceID="ProfileXmlDataSource_Age"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%"  ID="ddlPartnerBuild" runat="server" DataSourceID="ProfileXmlDataSource_Age"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblBuildText" runat="server" Text="Testalkalt"></asp:Label>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlOwnAge" runat="server" DataSourceID="ProfileXmlDataSource_Build"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlPartnerAge" runat="server" DataSourceID="ProfileXmlDataSource_Build"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblLocationText" runat="server" Text="Iskolai végzettség"></asp:Label>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlOwnSchool" runat="server" DataSourceID="ProfileXmlDataSource_School"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
        <td align="center">
            <asp:DropDownList Width="80%" ID="ddlPartnerSchool" runat="server" DataSourceID="ProfileXmlDataSource_School"
                DataTextField="text" DataValueField="value">
            </asp:DropDownList>
        </td>
    </tr>
</table>
<asp:XmlDataSource ID="ProfileXmlDataSource_Sex" runat="server" DataFile="~/App_Data/ProfileValues.xml"
    XPath="ProfileValues/ProfileValue[@name='Sex']/Value"></asp:XmlDataSource>

<asp:XmlDataSource ID="ProfileXmlDataSource_Age" runat="server" DataFile="~/App_Data/ProfileValues.xml"
    XPath="ProfileValues/ProfileValue[@name='Age']/Value"></asp:XmlDataSource>
<asp:XmlDataSource ID="ProfileXmlDataSource_Build" runat="server" DataFile="~/App_Data/ProfileValues.xml"
    XPath="ProfileValues/ProfileValue[@name='Build']/Value"></asp:XmlDataSource>
<asp:XmlDataSource ID="ProfileXmlDataSource_School" runat="server" DataFile="~/App_Data/ProfileValues.xml"
    XPath="ProfileValues/ProfileValue[@name='HighestSchool']/Value"></asp:XmlDataSource>
